<?php

/**
 * PluginGfUser form.
 *
 * @package    ##PROJECT_NAME##
 * @subpackage form
 * @author     ##AUTHOR_NAME##
 * @version    SVN: $Id: sfDoctrineFormPluginTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
abstract class PluginGfUserForm extends BaseGfUserForm {

	public function setup() {
		parent::setup();

		unset(
			$this['last_login'], $this['created_at'], $this['updated_at'], $this['salt'], $this['algorithm'], $this['is_active'], $this['is_super_admin'], $this['forgot_password_code'], $this['slug']
		);

		$this->widgetSchema['password'] = new sfWidgetFormInputPassword(array());
		$this->validatorSchema['password']->setOption('required', $this->object->isNew());
	}
}
